library GPLS initializer init requires LegacySystem


	private function Trig_Learn_GPLS_Conditions takes nothing returns boolean
		if ( not ( GetLearnedSkillBJ() == 'A06I' ) ) then
			return false
		endif
		return true
	endfunction

	private function Trig_Learn_GPLS_Actions takes nothing returns nothing

		call putInteger(null,"FO_barrage_delay", getInteger(null,"FO_barrage_delay")-1)
		call putInteger(null,"FO_total_shells", getInteger(null,"FO_total_shells")+50)
	  
	endfunction

	//===========================================================================
	private function init takes nothing returns nothing
		local trigger t
		set t = CreateTrigger(  )
		call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_HERO_SKILL )
		call TriggerAddCondition( t, Condition( function Trig_Learn_GPLS_Conditions ) )
		call TriggerAddAction( t, function Trig_Learn_GPLS_Actions )
	endfunction

endlibrary